package com.wechat.data.message.reply;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.wechat.data.message.Message;
import com.wechat.data.message.receive.MessageType;
import com.wechat.data.message.reply.article.Articles;

import lombok.Setter;
import lombok.ToString;

/**
 * 图文消息
 * 
 * @author dong
 *
 */
@ToString(callSuper = true)
@Setter
@XmlRootElement(name = "xml")
public class PicArticleMessage extends Message {
	// 图文消息个数，限制为10条以内
	private Integer articleCount;

	// 多条图文消息信息，默认第一个item为大图,注意，如果图文数超过10，则将会无响应
	private Articles articles;

	public PicArticleMessage() {
		super.setMsgType(MessageType.news.getType());
	}

	@XmlElement(name = "ArticleCount")
	public Integer getArticleCount() {
		return articleCount;
	}

	@XmlElement(name = "Articles")
	public Articles getArticles() {
		return articles;
	}
}
